.marked {
  p {
    line-height: 15px;
    text-indent: 2px;
    margin-bottom: 5px;

    &.text-center {
      text-align: center;
    }

    &.text-right {
      text-align: right;
    }
  }

  a {
    margin: 0 0.1em;
    border-bottom: 1px solid transparent;
    font-weight: bold;
    text-decoration: underline;
    color: #fc625d;

    &.image-link {
      margin: 0;
      border: 0;
    }

    &:hover {
      text-decoration: none;
      border-color: initial;
    }
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    text-indent: 10px;
  }
  h1 {
    font-size: 18px;
    line-height: 30px;
  }
  h2 {
    font-size: 16px;
    line-height: 28px;
  }
  h3 {
    font-size: 14px;
    line-height: 24px;
  }
  h4,
  h5,
  h6 {
    font-size: 12px;
    line-height: 20px;
  }

  blockquote {
    p {
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  ul {
    list-style-type: square;
  }

  img :not(.emoji-img) {
    max-width: 100%;
    position: relative;
    margin: 0 auto;
    display: block;
    text-align: center;
    border-radius: 5px;

    opacity: 0.9;
    cursor: pointer;
    &:hover {
      opacity: 1;
    }
  }

  iframe {
    width: 100%;
    margin-bottom: 1em;
  }

  code {
    color: #bd4147;
    padding: 0.3em 0.4em;
    margin: 0 0.3em;
    border-radius: 5px;

    font-size: 12px;
  }

  &.comment {
    line-height: 2em;
    word-wrap: break-word;
    font-size: 12px;

    p {
      text-indent: 0;
      line-height: 2em;
      &:last-child {
        margin: 0;
      }
    }

    a {
      text-decoration: none;
      border-bottom: 1px solid;
    }

    img {
      margin: 0.5rem 0;
      max-width: 100%;
      border-color: 5px;
    }

    ul,
    ol {
      padding-left: 2em;

      > li {
        padding: 0.2em 0.5em;
      }
    }
  }
}

.highlight {
  ::v-deep .code-toolbar {
    > .toolbar {
      width: 100%;
      opacity: 1;
      z-index: 3;
      height: 30px;
      padding: 5px;
      top: 0;
      left: 0;

      .toolbar-item {
        margin-right: 5px;

        &:first-child {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
        }
        &:last-child {
          position: absolute;
          right: 0;
        }
        span,
        button {
          // color: white;
          cursor: pointer;
          &:hover {
            color: white;
          }
        }
      }
      &::before {
        content: ' ';
        position: absolute;
        border-radius: 50%;
        background: #fc625d;
        width: 0.6875rem;
        height: 0.6875rem;
        left: 1.375rem;
        top: 0.9rem;
        box-shadow: 1.25rem 0 #fdbc40, 2.5rem 0 #35cd4b;
        z-index: 2;
      }
    }
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 30px;
      background: rgb(52, 58, 64);
      z-index: 2;
    }
  }
  ::v-deep pre[class*='language-'].line-numbers {
    padding-top: 30px;
  }
}
